<?xml version="1.0" encoding="UTF-8" ?>
 
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
        xmlns="http://www.w3.org/1999/xhtml">
    <xsl:output method="xml" indent="no"
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>

<xsl:include href="../../../templates/root.xsl"/>
<xsl:include href="../../../templates/date_selector.xsl"/>
<xsl:include href="report_selector.xsl"/>

<xsl:template match="*"/>

<xsl:template match="report_name">
    <xsl:call-template name="reportSelector"/>
    <xsl:call-template name="dateSelector"/>
    <h1><xsl:value-of select="."/></h1>
</xsl:template>

<xsl:template match="report_data">
    <table class="reportTable">
        <tr>
            <th>По ссылкам:</th>
            <td><a href="report.php?module=sources&amp;report=servers&amp;date1={/root/date1}&amp;date2={/root/date2}"><xsl:value-of select="@servers"/></a></td>
        </tr>
        <tr>
            <th>С поисковиков:</th>
            <td><a href="report.php?module=sources&amp;report=engines&amp;date1={/root/date1}&amp;date2={/root/date2}"><xsl:value-of select="@engines"/></a></td>
        </tr>
    </table>
</xsl:template>

</xsl:stylesheet>